package sagroup.pdlime;

import java.net.UnknownHostException;

import lights.adapters.Field;
import lights.adapters.Tuple;
import lime2.PolicyException;

public class SrcNodeToBeFR {
	private static final int HTTP_PORT = 8073;
	private static final int PORT = 1973;
	static String fieldPrefix = "tsToBeFullReplicated";
	static int totalToBeOut = 5;

	public static void main(String[] args) throws UnknownHostException,
			PolicyException {
		// a node whose tuples will be full replicated by another node.
		NodePartinTesting srcNode = new NodePartinTesting(PORT, HTTP_PORT);

		for (int i = 0; i < totalToBeOut; i++) {
			srcNode.piccoSpace.out(new TupleType(fieldPrefix), new Tuple()
					.add(new Field().setValue(fieldPrefix + i)));
		}
	}

}
